﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageMcSigAdmin.master" AutoEventWireup="true"
    CodeFile="ViaticosRegistroViajeProgramado.aspx.cs" Inherits="ViaticosRegistroViajeProgramado" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxLoadingPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
    // <![CDATA[


       function Uploader_OnUploadStart() {
           btnUpload.SetEnabled(false);
       }
       function Uploader_OnFileUploadComplete(args) {
           var imgSrc = aspxPreviewImgSrc;
           if (args.isValid) {
               var date = new Date();
               imgSrc = "Archivos/Comisiones/" + args.callbackData + "?dx=" + date.getTime();
               //alert(imgSrc);
           }
           getPreviewImageElement().src = imgSrc;
           //alert(getPreviewImageElement().src);
       }
       function Uploader_OnFilesUploadComplete(args) {
           UpdateUploadButton();
       }
       function UpdateUploadButton() {
           btnUpload.SetEnabled(uploader.GetText(0) != "");
       }
       function getPreviewImageElement() {
           return document.getElementById("previewImage");
       }

       function CargarPreviewImageElement(ruta) {
           
           document.getElementById("previewImage").src = ruta;
       }

       // pasabordo 2


       function Uploader_OnUploadStart2() {
           btnUpload2.SetEnabled(false);
       }
       function Uploader_OnFileUploadComplete2(args) {
           var imgSrc = aspxPreviewImgSrc2;
           if (args.isValid) {
               var date = new Date();
               imgSrc = "Archivos/Comisiones/" + args.callbackData + "?dx=" + date.getTime();
               //alert(imgSrc);
           }
           getPreviewImageElement2().src = imgSrc;
           //alert(getPreviewImageElement().src);
       }
       function Uploader_OnFilesUploadComplete2(args) {
           UpdateUploadButton2();
       }
       function UpdateUploadButton2() {
           btnUpload2.SetEnabled(uploader2.GetText(0) != "");
       }
       function getPreviewImageElement2() {
           return document.getElementById("previewImage2");
       }

       function CargarPreviewImageElement2(ruta) {

           document.getElementById("previewImage2").src = ruta;
       }


       // pasabordo 3


       function Uploader_OnUploadStart3() {
           btnUpload3.SetEnabled(false);
       }
       function Uploader_OnFileUploadComplete3(args) {
           var imgSrc = aspxPreviewImgSrc3;
           if (args.isValid) {
               var date = new Date();
               imgSrc = "Archivos/Comisiones/" + args.callbackData + "?dx=" + date.getTime();
               //alert(imgSrc);
           }
           getPreviewImageElement3().src = imgSrc;
           //alert(getPreviewImageElement().src);
       }
       function Uploader_OnFilesUploadComplete3(args) {
           UpdateUploadButton3();
       }
       function UpdateUploadButton3() {
           btnUpload3.SetEnabled(uploader3.GetText(0) != "");
       }
       function getPreviewImageElement3() {
           return document.getElementById("previewImage3");
       }

       function CargarPreviewImageElement3(ruta) {

           document.getElementById("previewImage3").src = ruta;
       }


    // ]]> 
    </script>
    <table style="width: 100%;">
        <tr>
            <td height="16px">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:Button ID="btnVolver" runat="server" CssClass="btn_back" Text="Volver" OnClick="btnVolver_Click" />
            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                <ContentTemplate>

                <table style="width: 90%;">
                    <tr>
                        <td>
                            
                
                
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnIniciarProceso" runat="server" OnClick="btnIniciarProceso_Click"
                                Text="INICIAR PROCESO" Theme="Office2003Blue" Width="148px" 
                                Enabled="False" ValidationGroup="GrupoPlanViaje">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnGestionHumana" runat="server" Enabled="False" 
                                Text="V.B. GESTIÓN HUMANA" onclick="btnGestionHumana_Click" 
                                Theme="Office2003Blue">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnCoordinadorProyecto" runat="server" Enabled="False" 
                                Text="COORDINADOR DE PROYECTO" onclick="btnCoordinadorProyecto_Click" 
                                Theme="Office2003Blue">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnPlaneacion" runat="server" Enabled="False" 
                                Text="V.B. PLANEACIÓN" onclick="btnPlaneacion_Click" Theme="Office2003Blue">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <dx:ASPxButton ID="btnDirector" runat="server" Enabled="False" 
                                        onclick="btnDirector_Click" Text="V.B. DIRECTOR " Theme="Office2003Blue">
                                        <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                    </dx:ASPxButton>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                <ContentTemplate>
                                    <dx:ASPxButton ID="btnFinanciera" runat="server" Enabled="False" 
                                        onclick="btnFinanciera_Click" Text="V.B FINANCIERA" 
                                        Theme="Office2003Silver">
                                        <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                    </dx:ASPxButton>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnTiquetes" runat="server" onclick="btnTiquetes_Click" 
                                Text="TIQUETES" Theme="SoftOrange">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnImprimirResolucion" runat="server" 
                                Text="IMPRIMIR RESOLUCION" Theme="SoftOrange" Visible="False">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                        </td>
                      
                        <td>
                            
                                    <dx:ASPxButton ID="btnRechazar" runat="server" 
                                        OnClick="btnRechazar_Click" Text="RECHAZAR" Theme="SoftOrange">
                                        <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                    </dx:ASPxButton>
                               
                        </td>
                        <td>
                            
                        </td>
                    </tr>
                </table>
                 </ContentTemplate>
                            </asp:UpdatePanel>
                            <dx:ASPxButton ID="btnImprimirReporteFuncionarios" runat="server" Text="IMPRIMIR" 
                                Theme="SoftOrange" onclick="btnImprimirReporteFuncionarios_Click">
                                <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                            </dx:ASPxButton>
                                                                                            <dx:ASPxButton runat="server" Text="IMPRIMIR INFORME" Theme="SoftOrange" 
                    ID="btnImprimirInforme" OnClick="btnImprimirInforme_Click">
<ClientSideEvents Click="function(s, e) {
                                                            Callback2.PerformCallback();
	                                                        LoadingPanel2.Show();
                                                        }"></ClientSideEvents>
</dx:ASPxButton>


            </td>
        </tr>
        <tr>
        <td>
        <dx:ASPxLabel ID="lblNumeroComision" runat="server" Theme="SoftOrange">
                        </dx:ASPxLabel>
        </td>
        </tr>
        <tr>
            <td>
                
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                    ValidationGroup="GrupoPlanViaje" ShowSummary="False" />
                
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                    <dx:ASPxPopupControl ID="PopupPanelMotivoRechazo" runat="server" 
                                                                                    
                            AllowDragging="True" Height="135px" Modal="True" 
                                                                                    
                            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                                                                                    Width="443px" 
                            HeaderText="RECHAZO">
                                                                                    <ContentCollection>
                                                                                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                                                                            <table style="width:100%;">
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <asp:Label ID="lblMotivoRechazo" runat="server"></asp:Label>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        Motivo Rechazo:</td>
                                                                                                    <td>
                                                                                                        <dx:ASPxMemo ID="txtObservacionesRechazo" runat="server" Height="71px" 
                                                                                                            Width="303px">
                                                                                                        </dx:ASPxMemo>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <dx:ASPxButton ID="btnGrabarRechazar" runat="server" 
                                                                                                            OnClick="btnGrabarRechazar_Click" Text="Guardar" Theme="SoftOrange">
                                                                                                            <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                                                                                        </dx:ASPxButton>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </dx:PopupControlContentControl>
                                                                                    </ContentCollection>
                                                                                </dx:ASPxPopupControl>
                        
                    
                        <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" 
                            Width="90%">
                            <TabPages>
                                <dx:TabPage Text="Plan de Viaje">
                                    <ContentCollection>
                                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                                                HeaderText="REGISTRO PLAN DE VIAJE " Theme="Aqua" Width="90%">
                                                <PanelCollection>
                                                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                        <table width="100%">
                                                            <tr>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td width="20%">
                                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel4" runat="server" 
                                                                        HeaderText="Plan de Viaje" Width="100%">
                                                                        <PanelCollection>
                                                                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                                                <table width="100%">
                                                                                    <tr>
                                                                                        <td class="campo-obligatorio" width="20%">
                                                                                            Tipo de plan
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxComboBox ID="CTI_ID" runat="server" AutoPostBack="True" 
                                                                                                OnSelectedIndexChanged="CTI_ID_SelectedIndexChanged" Theme="PlasticBlue">
                                                                                            </dx:ASPxComboBox>
                                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                                                                                ControlToValidate="CTI_ID" ErrorMessage="Campo Obligatorio Tipo de plan" 
                                                                                                ValidationGroup="GrupoPlanViaje">Campo Obligatorio Tipo de plan</asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr ID="trDescripcionViaje" runat="server" Visible="False">
                                                                                        <td runat="server" class="campo-obligatorio" width="20%">
                                                                                            Justificación de viaje no programado
                                                                                        </td>
                                                                                        <td runat="server">
                                                                                            <dx:ASPxMemo ID="COM_JUSTIFICACION_VIAJE_NO_PROGRAMADO" runat="server" 
                                                                                                Height="71px" 
                                                                                                NullText="Justificacion de la razon por la que el viaje corresponde a uno no programado " 
                                                                                                Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo-obligatorio" width="20%">
                                                                                            Tipo destino</td>
                                                                                        <td>
                                                                                            <dx:ASPxComboBox ID="CTD_ID" runat="server" AutoPostBack="True" 
                                                                                                OnSelectedIndexChanged="CTD_ID_SelectedIndexChanged" Theme="PlasticBlue">
                                                                                            </dx:ASPxComboBox>
                                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" 
                                                                                                ControlToValidate="CTD_ID" ErrorMessage="Campo Obligatorio Tipo destino" 
                                                                                                ValidationGroup="GrupoPlanViaje">Campo Obligatorio Tipo destino</asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr ID="trRegion" runat="server" Visible="False">
                                                                                        <td runat="server" class="campo-obligatorio" width="20%">
                                                                                            Región
                                                                                        </td>
                                                                                        <td runat="server">
                                                                                            <dx:ASPxComboBox ID="CRE_ID" runat="server" Theme="PlasticBlue">
                                                                                            </dx:ASPxComboBox>
                                                                                            <asp:RequiredFieldValidator ID="reqRegion" runat="server" 
                                                                                                ControlToValidate="CRE_ID" Enabled="False" 
                                                                                                ErrorMessage="Campo Obligatorio Región" ValidationGroup="GrupoPlanViaje">Campo Obligatorio Región</asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            <strong>Origen</strong>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <table width="100%">
                                                                                                <tr>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Departamento
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxComboBox ID="ddlDepartamentoOrigen" runat="server" AutoPostBack="True" 
                                                                                                            AutoResizeWithContainer="True" IncrementalFilteringMode="Contains" 
                                                                                                            OnSelectedIndexChanged="ddlDepartamentoOrigen_SelectedIndexChanged">
                                                                                                        </dx:ASPxComboBox>
                                                                                                    </td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Municipio
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxComboBox ID="ddlMunicipioOrigen" runat="server" 
                                                                                                            IncrementalFilteringMode="Contains" Theme="PlasticBlue">
                                                                                                        </dx:ASPxComboBox>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                                                                                            ControlToValidate="ddlMunicipioOrigen" 
                                                                                                            ErrorMessage="Campo Municipio es Obligatorio" ValidationGroup="GrupoPlanViaje">Campo Municipio es Obligatorio</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            <strong>Destino</strong>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <dx:ASPxGridView ID="ASPxGridViewZonas" runat="server" 
                                                                                                AutoGenerateColumns="False" ClientInstanceName="ASPxGridViewZonas" 
                                                                                                KeyFieldName="CCB_ID" OnRowDeleting="ASPxGridViewZonas_RowDeleting" 
                                                                                                OnRowInserting="ASPxGridViewZonas_RowInserting" 
                                                                                                OnRowUpdating="ASPxGridViewZonas_RowUpdating" Theme="Aqua" Width="100%">
                                                                                                <Columns>
                                                                                                    <dx:GridViewCommandColumn ShowInCustomizationForm="True" VisibleIndex="0">
                                                                                                        <EditButton Visible="True">
                                                                                                        </EditButton>
                                                                                                        <NewButton Visible="True">
                                                                                                        </NewButton>
                                                                                                        <DeleteButton Visible="True">
                                                                                                        </DeleteButton>
                                                                                                    </dx:GridViewCommandColumn>
                                                                                                    <dx:GridViewDataTextColumn Caption="ID" FieldName="CCB_ID" 
                                                                                                        ShowInCustomizationForm="True" VisibleIndex="1">
                                                                                                        <EditFormSettings Visible="False" />
                                                                                                    </dx:GridViewDataTextColumn>
                                                                                                    <dx:GridViewDataComboBoxColumn Caption="PAIS" FieldName="ZOP_ID" 
                                                                                                        ShowInCustomizationForm="True" VisibleIndex="4">
                                                                                                        <PropertiesComboBox DataSourceID="SqlDataSourcePais" 
                                                                                                            IncrementalFilteringMode="StartsWith" TextField="ZOP_NOMBRE" 
                                                                                                            ValueField="ZOP_ID"></PropertiesComboBox>
                                                                                                    </dx:GridViewDataComboBoxColumn>
                                                                                                    <dx:GridViewDataComboBoxColumn Caption="ZONA" FieldName="ZON_ID" 
                                                                                                        ShowInCustomizationForm="True" VisibleIndex="5">
                                                                                                        <PropertiesComboBox DataSourceID="SqlDataSourceZonas" 
                                                                                                            IncrementalFilteringMode="StartsWith" TextField="ZONA" ValueField="ZON_ID"></PropertiesComboBox>
                                                                                                    </dx:GridViewDataComboBoxColumn>
                                                                                                    <dx:GridViewDataTextColumn Caption="OTRA CIUDAD" FieldName="ZOP_CIUDAD" 
                                                                                                        ShowInCustomizationForm="True" VisibleIndex="5">
                                                                                                        <PropertiesTextEdit NullDisplayText="N/A"></PropertiesTextEdit>
                                                                                                    </dx:GridViewDataTextColumn>
                                                                                                    <dx:GridViewDataComboBoxColumn Caption="Tipo Desplazamiento" FieldName="CTD_ID" 
                                                                                                        ShowInCustomizationForm="True" VisibleIndex="5">
                                                                                                        <PropertiesComboBox DataSourceID="SqlDataSourceTipoDesplazamiento" 
                                                                                                            IncrementalFilteringMode="StartsWith" TextField="CTD_NOMBRE" 
                                                                                                            ValueField="CTD_ID"></PropertiesComboBox>
                                                                                                    </dx:GridViewDataComboBoxColumn>
                                                                                                    <dx:GridViewDataTextColumn Caption="COM_ID" FieldName="COM_ID" 
                                                                                                        ShowInCustomizationForm="True" VisibleIndex="6">
                                                                                                        <EditFormSettings Visible="False" />
                                                                                                    </dx:GridViewDataTextColumn>
                                                                                                </Columns>
                                                                                            </dx:ASPxGridView>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            <strong>Fechas</strong>
                                                                                            <asp:SqlDataSource ID="SqlDataSourcePais" runat="server" 
                                                                                                ConnectionString="<%$ ConnectionStrings:AGNSIGConnectionString %>" 
                                                                                                SelectCommand="SELECT [ZOP_ID], [ZOP_NOMBRE] FROM [BAS_ZONAS_PAISES]">
                                                                                            </asp:SqlDataSource>
                                                                                            <asp:SqlDataSource ID="SqlDataSourceZonas" runat="server" 
                                                                                                ConnectionString="<%$ ConnectionStrings:AGNSIGConnectionString %>" 
                                                                                                SelectCommand="SELECT BAS_ZONAS_GEOGRAFICAS.ZON_ID, (BAS_ZONAS_GEOGRAFICAS_1.ZON_NOMBRE  + ' ' +BAS_ZONAS_GEOGRAFICAS.ZON_NOMBRE) AS ZONA FROM  BAS_ZONAS_GEOGRAFICAS INNER JOIN BAS_ZONAS_GEOGRAFICAS AS BAS_ZONAS_GEOGRAFICAS_1 ON BAS_ZONAS_GEOGRAFICAS.ZON_PADRE_ID = BAS_ZONAS_GEOGRAFICAS_1.ZON_ID">
                                                                                            </asp:SqlDataSource>
                                                                                            <asp:SqlDataSource ID="SqlDataSourceTipoDesplazamiento" runat="server" 
                                                                                                ConnectionString="<%$ ConnectionStrings:AGNSIGConnectionString %>" 
                                                                                                SelectCommand="SELECT         CTD_ID, CTD_NOMBRE FROM COM_TIPOS_DESPLAZAMIENTO">
                                                                                            </asp:SqlDataSource>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <table style="width: 90%;">
                                                                                                <tr>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Fecha de salida
                                                                                                    </td>
                                                                                                    <td class="style2">
                                                                                                        <asp:TextBox ID="COM_FECHA_SALIDA" runat="server" AutoPostBack="True" 
                                                                                                            OnTextChanged="COM_FECHA_SALIDA_TextChanged"></asp:TextBox>
                                                                                                        <asp:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" 
                                                                                                            Format="dd/MM/yyyy" TargetControlID="COM_FECHA_SALIDA">
                                                                                                        </asp:CalendarExtender>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                                                                                                            ControlToValidate="COM_FECHA_SALIDA" 
                                                                                                            ErrorMessage="Campo Obligatorio Fecha de salida" 
                                                                                                            ValidationGroup="GrupoPlanViaje">Campo Obligatorio Fecha de salida</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Fecha de regreso
                                                                                                    </td>
                                                                                                    <td class="style2">
                                                                                                        <asp:TextBox ID="COM_FECHA_REGRESO" runat="server" AutoPostBack="True" 
                                                                                                            OnTextChanged="COM_FECHA_REGRESO_TextChanged"></asp:TextBox>
                                                                                                        <asp:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" 
                                                                                                            Format="dd/MM/yyyy" TargetControlID="COM_FECHA_REGRESO">
                                                                                                        </asp:CalendarExtender>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" 
                                                                                                            ControlToValidate="COM_FECHA_REGRESO" 
                                                                                                            ErrorMessage="Campo Obligatorio Fecha de regreso" 
                                                                                                            ValidationGroup="GrupoPlanViaje">Campo Obligatorio Fecha de regreso</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                    <td class="style2">
                                                                                                        &nbsp;
                                                                                                    </td>
                                                                                                    <td class="style2">
                                                                                                        <asp:CheckBox ID="COM_PERNOCTA" runat="server" Text="Pernocta" />
                                                                                                    </td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Total dias:
                                                                                                    </td>
                                                                                                    <td class="style2">
                                                                                                        <dx:ASPxTextBox ID="COM_TOTAL_DIAS" runat="server" Width="70px">
                                                                                                        </dx:ASPxTextBox>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                                                                                                            ControlToValidate="COM_TOTAL_DIAS" ErrorMessage="Campo Obligatorio Total Dias" 
                                                                                                            ValidationGroup="GrupoPlanViaje">Campo Obligatorio Total Dias</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            &nbsp; <strong>Pasajero:</strong>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <table style="width: 100%;">
                                                                                                <tr>
                                                                                                    <td class="campo-obligatorio" width="20%">
                                                                                                        Esta persona es :
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxRadioButtonList ID="CCO_TIPO" runat="server" 
                                                                                                            RepeatDirection="Horizontal" SelectedIndex="0" Theme="PlasticBlue" 
                                                                                                            AutoPostBack="True" OnSelectedIndexChanged="CCO_TIPO_SelectedIndexChanged">
                                                                                                            <Items>
                                                                                                                <dx:ListEditItem Selected="True" Text="Funcionario" Value="F" />
                                                                                                                <dx:ListEditItem Text="Contratista" Value="C" />
                                                                                                            </Items>
                                                                                                        </dx:ASPxRadioButtonList>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td class="campo-obligatorio" width="20%">
                                                                                                        Nombre</td>
                                                                                                    <td>
                                                                                                        <dx:ASPxComboBox ID="CCO_ID" runat="server" AutoPostBack="True" 
                                                                                                            HelpText="Seleccione Persona" IncrementalFilteringMode="Contains" 
                                                                                                            OnSelectedIndexChanged="CCO_ID_SelectedIndexChanged" Theme="PlasticBlue" 
                                                                                                            Width="100%">
                                                                                                        </dx:ASPxComboBox>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                                                                                            ControlToValidate="CCO_ID" ErrorMessage="Campo Obligatorio Nombre" 
                                                                                                            ValidationGroup="GrupoPlanViaje">Campo Obligatorio Nombre</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            VIATICOS
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr runat="server" id="tr123" visible="false">
                                                                                        <td class="campo-obligatorio" style="height: 14px">
                                                                                            Entidad que suministra Viaticos
                                                                                        </td>
                                                                                        <td style="height: 14px">
                                                                                            <dx:ASPxComboBox ID="ASPxEntidadSuministraViaticos" runat="server" 
                                                                                                SelectedIndex="0" Theme="PlasticBlue" AutoPostBack="True" 
                                                                                                OnSelectedIndexChanged="ASPxEntidadSuministraViaticos_SelectedIndexChanged">
                                                                                                <Items>
                                                                                                    <dx:ListEditItem Selected="True" Text="AGN" Value="A" />
                                                                                                    <dx:ListEditItem Text="OTRA" Value="O" />
                                                                                                </Items>
                                                                                            </dx:ASPxComboBox>
                                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                                                                                ControlToValidate="ASPxEntidadSuministraViaticos" Enabled="false"
                                                                                                ErrorMessage="Campo Obligatorio Entidad que suministra Viaticos" 
                                                                                                ValidationGroup="GrupoPlanViaje">Campo Obligatorio Entidad que suministra Viaticos</asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr runat="server" id="trEntidad" visible="false">
                                                                                        <td class="campo" style="height: 14px">
                                                                                            Descripción
                                                                                        </td>
                                                                                        <td style="height: 14px">
                                                                                            <dx:ASPxMemo ID="COM_VIATICOS_DESCIPCION" runat="server" Height="71px" 
                                                                                                NullText="Descripcion de detalles asociados a la entidad que suministra los viaticos" 
                                                                                                Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo" style="height: 14px">
                                                                                            &nbsp;
                                                                                        </td>
                                                                                        <td style="height: 14px">
                                                                                            &nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <table style="width: 100%;">
                                                                                                <tr>
                                                                                                    <td class="campo">
                                                                                                        CDP
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxComboBox ID="FAE_ID_VIATICOS" runat="server" AutoPostBack="True" 
                                                                                                            IncrementalFilteringMode="Contains" 
                                                                                                            OnSelectedIndexChanged="FAE_ID_VIATICOS_SelectedIndexChanged" 
                                                                                                            Theme="PlasticBlue">
                                                                                                        </dx:ASPxComboBox>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                                                                                                            ControlToValidate="FAE_ID_VIATICOS" 
                                                                                                            ErrorMessage="Campo Obligatorio CDP Viaticos" ValidationGroup="GrupoPlanViaje">Campo Obligatorio CDP Viaticos</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        &nbsp;</td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Dependencia
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxLabel ID="lblDependencia" runat="server" Text="Dependencia">
                                                                                                        </dx:ASPxLabel>
                                                                                                    </td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Actividad
                                                                                                    </td>
                                                                                                    <td class="style4">
                                                                                                        <dx:ASPxLabel ID="lblRubro" runat="server" Text="Rubro">
                                                                                                        </dx:ASPxLabel>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2" dir="ltr">
                                                                                            &nbsp;</td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2" dir="ltr">
                                                                                            &nbsp;TIQUETES
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo-obligatorio" style="height: 13px">
                                                                                            Entidad que suministra Tiquetes
                                                                                        </td>
                                                                                        <td style="height: 13px">
                                                                                            <dx:ASPxComboBox ID="COM_ENTIDAD_SUMINISTRA_TIQUETES" runat="server" 
                                                                                                SelectedIndex="0" Theme="PlasticBlue" AutoPostBack="True" 
                                                                                                
                                                                                                OnSelectedIndexChanged="ASPxEntidadSuministraTiquetes_SelectedIndexChanged">
                                                                                                <Items>
                                                                                                    <dx:ListEditItem Selected="True" Text="AGN" Value="A" />
                                                                                                    <dx:ListEditItem Text="OTRA" Value="O" />
                                                                                                </Items>
                                                                                            </dx:ASPxComboBox>
                                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                                                                                                ControlToValidate="COM_ENTIDAD_SUMINISTRA_TIQUETES" 
                                                                                                ErrorMessage="Campo Obligatorio Entidad que suministra Tiquetes" 
                                                                                                ValidationGroup="GrupoPlanViaje">Campo Obligatorio Entidad que suministra Tiquetes</asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr runat="server" id="trDescripcionEntidad2" visible="false">
                                                                                        <td class="campo" style="height: 14px">
                                                                                            Descripción
                                                                                        </td>
                                                                                        <td style="height: 14px">
                                                                                            <dx:ASPxMemo ID="COM_TIQUERES_DESCIPCION" runat="server" Height="71px" 
                                                                                                NullText="Descripcion de detalles asociados a la entidad que suministra los tiquetes" 
                                                                                                Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo" style="height: 14px">
                                                                                            VALOR TOTAL TIQUETES
                                                                                        </td>
                                                                                        <td style="height: 14px">
                                                                                            <dx:ASPxTextBox ID="COM_TIQUETES_VALOR_TOTAL" runat="server" Text="0" 
                                                                                                Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <table style="width: 100%;">
                                                                                                <tr>
                                                                                                    <td class="campo">
                                                                                                        CDP
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxComboBox ID="FAE_ID_TIQUETES" runat="server" AutoPostBack="True" 
                                                                                                            IncrementalFilteringMode="Contains" 
                                                                                                            OnSelectedIndexChanged="FAE_ID_TIQUETES_SelectedIndexChanged" 
                                                                                                            Theme="PlasticBlue">
                                                                                                        </dx:ASPxComboBox>
                                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                                                                                                            ControlToValidate="FAE_ID_TIQUETES" 
                                                                                                            ErrorMessage="Campo Obligatorio CDP Tiquetes" ValidationGroup="GrupoPlanViaje">Campo Obligatorio CDP Tiquetes</asp:RequiredFieldValidator>
                                                                                                    </td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Dependencia</td>
                                                                                                    <td>
                                                                                                        <dx:ASPxLabel ID="lblDependenciaTiquete" runat="server" Text="Dependencia">
                                                                                                        </dx:ASPxLabel>
                                                                                                    </td>
                                                                                                    <td class="campo-obligatorio">
                                                                                                        Actividad
                                                                                                    </td>
                                                                                                    <td class="style4">
                                                                                                        <dx:ASPxLabel ID="lblRubroTiquete" runat="server" Text="Dependencia">
                                                                                                        </dx:ASPxLabel>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </td>
                                                                                        <tr>
                                                                                            <td class="encabezado1" colspan="2">
                                                                                                Agenda de trabajo
                                                                                            </td>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                <dx:ASPxGridView ID="ASPxGridViewAgenda" runat="server" 
                                                                                                    AutoGenerateColumns="False" KeyFieldName="CCA_ID" 
                                                                                                    OnParseValue="ASPxGridViewAgenda_ParseValue" 
                                                                                                    OnRowDeleting="ASPxGridViewAgenda_RowDeleting" 
                                                                                                    OnRowInserting="ASPxGridViewAgenda_RowInserting" 
                                                                                                    OnRowUpdating="ASPxGridViewAgenda_RowUpdating" Theme="Aqua" Width="100%">
                                                                                                    <Columns>
                                                                                                        <dx:GridViewCommandColumn ShowInCustomizationForm="True" VisibleIndex="0">
                                                                                                            <EditButton Visible="True">
                                                                                                            </EditButton>
                                                                                                            <NewButton Visible="True">
                                                                                                            </NewButton>
                                                                                                            <DeleteButton Visible="True">
                                                                                                            </DeleteButton>
                                                                                                        </dx:GridViewCommandColumn>
                                                                                                        <dx:GridViewDataComboBoxColumn Caption="PAIS" FieldName="ZOP_ID" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="2">
                                                                                                            <PropertiesComboBox DataSourceID="SqlDataSourcePais" 
                                                                                                                IncrementalFilteringMode="StartsWith" TextField="ZOP_NOMBRE" 
                                                                                                                ValueField="ZOP_ID"></PropertiesComboBox>
                                                                                                        </dx:GridViewDataComboBoxColumn>
                                                                                                        <dx:GridViewDataComboBoxColumn Caption="ZONA" FieldName="ZON_ID" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="3">
                                                                                                            <PropertiesComboBox DataSourceID="SqlDataSourceZonas" 
                                                                                                                IncrementalFilteringMode="StartsWith" TextField="ZONA" ValueField="ZON_ID"></PropertiesComboBox>
                                                                                                        </dx:GridViewDataComboBoxColumn>
                                                                                                        <dx:GridViewDataDateColumn Caption="Fecha" FieldName="CCA_FECHA" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="4">
                                                                                                        </dx:GridViewDataDateColumn>
                                                                                                        <dx:GridViewDataTextColumn Caption="Hora inicio" FieldName="CCA_HORA_INICIO" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="6" Width="150px">
                                                                                                            <PropertiesTextEdit Width="150px"><MaskSettings Mask="&lt;00..23&gt;:&lt;00..59&gt;:&lt;00..59&gt;" /></PropertiesTextEdit>
                                                                                                        </dx:GridViewDataTextColumn>
                                                                                                        <dx:GridViewDataTextColumn Caption="Hora fin" FieldName="CC_HORA_FIN" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="7" Width="150px">
                                                                                                            <PropertiesTextEdit Width="150px"><MaskSettings Mask="&lt;00..23&gt;:&lt;00..59&gt;:&lt;00..59&gt;" /></PropertiesTextEdit>
                                                                                                        </dx:GridViewDataTextColumn>
                                                                                                        <dx:GridViewDataTextColumn Caption="Descripcion" FieldName="CCA_DESCIPCION" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="9">
                                                                                                        </dx:GridViewDataTextColumn>
                                                                                                        <dx:GridViewDataTextColumn Caption="ID" FieldName="CCA_ID" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="1">
                                                                                                            <EditFormSettings Visible="False" />
                                                                                                        </dx:GridViewDataTextColumn>
                                                                                                        <dx:GridViewDataTextColumn Caption="OTRA CIUDAD" FieldName="ZOP_CIUDAD" 
                                                                                                            ShowInCustomizationForm="True" VisibleIndex="10">
                                                                                                        </dx:GridViewDataTextColumn>
                                                                                                    </Columns>
                                                                                                </dx:ASPxGridView>
                                                                                            </td>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tr>
                                                                                </table>
                                                                            </dx:PanelContent>
                                                                        </PanelCollection>
                                                                    </dx:ASPxRoundPanel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="title">
                                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" HeaderText="Liquidación" 
                                                                        Width="100%">
                                                                        <PanelCollection>
                                                                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                                                <table style="width: 100%;">
                                                                                    <tr>
                                                                                        <td class="campo">
                                                                                            Entidad que suministra Viaticos</td>
                                                                                        <td>
                                                                                            <dx:ASPxComboBox ID="COM_ENTIDAD_SUMINISTRA_VIATICOS" runat="server" Theme="PlasticBlue" 
                                                                                                SelectedIndex="0" 
                                                                                                
                                                                                                OnSelectedIndexChanged="COM_ENTIDAD_SUMINISTRA_VIATICOS_SelectedIndexChanged" 
                                                                                                AutoPostBack="True">
                                                                                                <Items>
                                                                                                    <dx:ListEditItem Text="AGN" Value="A" Selected="True" />
                                                                                                    <dx:ListEditItem Text="Convenios" Value="C" />
                                                                                                    <dx:ListEditItem Text="Otras Entidades" Value="O" />
                                                                                                </Items>
                                                                                            </dx:ASPxComboBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1">
                                                                                            Viaticos Diarios
                                                                                        </td>
                                                                                        <td class="campo">
                                                                                            valor
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo">
                                                                                            Alojamiento(50%):
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_ALOJAMIENTO" runat="server" Text="0" 
                                                                                                Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo">
                                                                                            Transporte local(10%)
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_TRANSPORTE_LOCAL" runat="server" 
                                                                                                Text="0" Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo">
                                                                                            Manutención(40%):
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_MANUTENCION" runat="server" Text="0" 
                                                                                                Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                     <tr>
                                                                                        <td class="encabezado1">
                                                                                            TOTAL
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_TOTAL" runat="server" Text="0" 
                                                                                                Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo" style="height: 16px">
                                                                                            Otros(trans. terrestre):
                                                                                        </td>
                                                                                        <td style="height: 16px">
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_OTROS_TRANS_TERRESTRE" runat="server" 
                                                                                                Text="0" Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo">
                                                                                            Otros(trans. fluvial):
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_OTROS_TRANS_FLUVIAL" runat="server" 
                                                                                                Text="0" Theme="iOS" Width="170px">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="campo">
                                                                                            Otros(peaje - gasolina):
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_VIATICOS_VALOR_OTROS_PEAJE_GASOLINA" runat="server" 
                                                                                                Text="0" Theme="iOS" Width="170px" ReadOnly="True">
                                                                                                <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                   
                                                                                    <tr>
                                                                                        <td class="encabezado1">
                                                                                            SALDO CDP VIATICOS</td>
                                                                                        <td>
                                                                                            <dx:ASPxLabel ID="lblSaldoCdp" runat="server" BackColor="White" 
                                                                                                Font-Bold="True" Font-Size="X-Small">
                                                                                            </dx:ASPxLabel>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </dx:PanelContent>
                                                                        </PanelCollection>
                                                                    </dx:ASPxRoundPanel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" HeaderText="" 
                                                                        Width="100%">
                                                                        <PanelCollection>
                                                                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                                                <table width=" 100%">
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="1" width="50%">
                                                                                            Nombre de la actividad que genera el desplazamiento
                                                                                        </td>
                                                                                        <td>
                                                                                            <dx:ASPxTextBox ID="COM_ACTIVIDAD_GENERA_DESPLAZAMIENTO" runat="server" 
                                                                                                Width="100%">
                                                                                            </dx:ASPxTextBox>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            Objeto del plan de viaje
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2" style="height: 76px">
                                                                                            <dx:ASPxMemo ID="COM_OBJETO_PLAN_VIAJE" runat="server" Height="71px" 
                                                                                                Native="True" Theme="Aqua" 
                                                                                                HelpText="Explique brevemente el objetivo principal de la comisión" Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                                                                                                ControlToValidate="COM_OBJETO_PLAN_VIAJE" 
                                                                                                ErrorMessage="Campo Obligatorio Objeto del plan de viaje " 
                                                                                                ValidationGroup="GrupoPlanViaje">Campo Obligatorio Objeto del plan de viaje </asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            Justificacion
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <dx:ASPxMemo ID="COM_JUSTIFICACION_VIAJE" runat="server" Height="71px" 
                                                                                                HelpText="Justifique el motivo de la comisiónJustifique el motivo de la comisión" 
                                                                                                Theme="Aqua" Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            Logros esperados
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <dx:ASPxMemo ID="COM_LOGROS_ESPERADOS" runat="server" Height="71px" 
                                                                                                HelpText="¿ Que logros espera alcanzar en la comisión?" Theme="Aqua" 
                                                                                                Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                    
                                                                                  
                                                                                </table>
                                                                            </dx:PanelContent>
                                                                        </PanelCollection>
                                                                    </dx:ASPxRoundPanel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <table ID="Panel" style="width: 100%;">
                                                                        <tr>
                                                                            <td class="encabezado1">
                                                                                Usuario que radica
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtUsuRadica" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="encabezado1">
                                                                                Fecha de la radicacion
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtFechaRegistro" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" colspan="2">
                                                                               
                                                                                <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientIDMode="AutoID" 
                                                                                    ClientInstanceName="Callback">
                                                                                    <ClientSideEvents CallbackComplete="function(s, e) { LoadingPanel.Hide(); }" />
                                                                                </dx:ASPxCallback>
                                                                               
                                                                                <dx:ASPxButton ID="btnGuardar" runat="server" AutoPostBack="False" 
                                                                                    OnClick="btnGuardar_Click" Text="Guardar" Theme="SoftOrange" 
                                                                                    ValidationGroup="GrupoPlanViaje">
                                                                                    <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                                                                </dx:ASPxButton>
                                                                                
                                                                                <dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" runat="server" 
                                                                                    ClientInstanceName="LoadingPanel" Modal="True" Text="Procesando&amp;hellip;" 
                                                                                    Theme="Youthful">
                                                                                </dx:ASPxLoadingPanel>
                                                                                
                                                                                <dx:ASPxPopupControl ID="ASPxPopupControlTiquetes" runat="server" 
                                                                                    Height="135px"  PopupHorizontalAlign="WindowCenter" 
                                                                                    PopupVerticalAlign="WindowCenter" AllowDragging="True"
                    Modal="True" 
                                                                                    Width="443px">
                                                                                    <ContentCollection>
                                                                                        <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                                                                            <table style="width:100%;">
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <asp:Label ID="lblNumeracion" runat="server"></asp:Label>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                            Valor Tiquetes</td>
                                                                                                    <td>
                                                                                                        <dx:ASPxTextBox ID="txtValorTiquetes" runat="server" Text="0" Theme="iOS" 
                                                                                                            Width="170px">
                                                                                                            <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                                        </dx:ASPxTextBox>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <dx:ASPxButton ID="btnGrabarValorTiquetes" runat="server" 
                                                                                                            OnClick="btnGrabarNumeroComision_Click" Text="Guardar" Theme="SoftOrange">
                                                                                                            <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                                                                                        </dx:ASPxButton>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </dx:PopupControlContentControl>
                                                                                    </ContentCollection>
                                                                                </dx:ASPxPopupControl>
                                                                                <dx:ASPxPopupControl ID="ASPxPopupControlTransporteTerrestre" runat="server" 
                                                                                    Height="135px"  PopupHorizontalAlign="WindowCenter" 
                                                                                    PopupVerticalAlign="WindowCenter" AllowDragging="True"
                    Modal="True" 
                                                                                    Width="443px">
                                                                                    <ContentCollection>
                                                                                        <dx:PopupControlContentControl ID="PopupControlTransporteTerrestre" runat="server" SupportsDisabledAttribute="True">
                                                                                            <table style="width:100%;">
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <asp:Label ID="lblMensajeValorTransporteTerrestre" runat="server"></asp:Label>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                            Valor Tiquetes Terrestres </td>
                                                                                                    <td>
                                                                                                        <dx:ASPxTextBox ID="txtValorTransporteTerrestre" runat="server" Text="0" Theme="iOS" 
                                                                                                            Width="170px">
                                                                                                            <MaskSettings Mask="&lt;0..9999999g&gt;" />
                                                                                                        </dx:ASPxTextBox>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td colspan="2">
                                                                                                        <dx:ASPxButton ID="btnGrabarValorTransporteTerrestre" runat="server" 
                                                                                                            OnClick="btnGrabarValorTransporteTerrestre_Click" Text="Guardar" Theme="SoftOrange">
                                                                                                            <ClientSideEvents Click="function(s, e) {
                                                            Callback.PerformCallback();
	                                                        LoadingPanel.Show();
                                                        }" />
                                                                                                        </dx:ASPxButton>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </dx:PopupControlContentControl>
                                                                                    </ContentCollection>
                                                                                </dx:ASPxPopupControl>
                                                                                
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </dx:PanelContent>
                                                </PanelCollection>
                                            </dx:ASPxRoundPanel>
                                        </dx:ContentControl>
                                    </ContentCollection>
                                </dx:TabPage>
                                <dx:TabPage Text="Informe">
                                    <ContentCollection>
                                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                            <dx:ASPxRoundPanel ID="ASPxRoundPanel5" runat="server" 
                                                HeaderText="Documentos Anexos" Width="90%">
                                                <PanelCollection>
                                                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                        <table width=" 100%">
                                                            <tr>
                                                                                        <td colspan="2">
                                                                                            <dx:ASPxRoundPanel ID="ASPxRoundPanel7" runat="server" 
                                                                                                HeaderText="Flujo Legalización" Width="100%">
                                                                                                <PanelCollection>
                                                                                                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                                                                        <table style="width: 100%;">
                                                                                                            <tr valign="top">
                                                                                                                <td>
                                                                                                                    <dx:ASPxButton ID="tnIniciarProcesoInforme" runat="server" 
                                                                                                                        Text="INICIAR PROCESO" OnClick="tnIniciarProcesoInforme_Click" 
                                                                                                                        Enabled="False" Theme="Office2003Blue" ValidationGroup="GrupoInforme">
                                                             <ClientSideEvents Click="function(s, e) {
                                                            Callback2.PerformCallback();
	                                                        LoadingPanel2.Show();
                                                        }" />
                                                                                                                    </dx:ASPxButton>
                                                                                                                </td>
                                                                                                                <td>
                                                                                                                    <dx:ASPxButton ID="btnVBCoordinadorInforme" runat="server" Enabled="False" 
                                                                                                                        Text="V.B. COORDINADOR " OnClick="btnVBCoordinadorInforme_Click" 
                                                                                                                        Theme="Office2003Blue">
                                                             <ClientSideEvents Click="function(s, e) {
                                                            Callback2.PerformCallback();
	                                                        LoadingPanel2.Show();
                                                        }" />
                                                                                                                    </dx:ASPxButton>
                                                                                                                </td>
                                                                                                                <td>
                                                                                                                    <dx:ASPxButton ID="btnVBFinancieraInforme" runat="server" Enabled="False" 
                                                                                                                        Text="V.B. Financiera" OnClick="btnVBFinancieraInforme_Click" 
                                                                                                                        Theme="Office2003Blue">
                                                             <ClientSideEvents Click="function(s, e) {
                                                            Callback2.PerformCallback();
	                                                        LoadingPanel2.Show();
                                                        }" />
                                                                                                                    </dx:ASPxButton>
                                                                                                                </td>
                                                                                                                <td>
                                                                                                                    <dx:ASPxButton ID="btnRechazarInforme" runat="server" 
                                                                                                                         Text="RECHAZAR" OnClick="btnRechazarInforme_Click">
                                                            
                                                                                                                    </dx:ASPxButton>
                                                                                                                </td>
                                                                                                                <td>
                                                                                                                    &nbsp;</td>
                                                                                                            </tr>
                                                                                                        </table>
                                                                                                    </dx:PanelContent>
                                                                                                </PanelCollection>
                                                                                            </dx:ASPxRoundPanel>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            Resumen
                                                                                        </td>
                                                            </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <dx:ASPxMemo ID="COM_RESUMEN" runat="server" Height="71px" 
                                                                                                HelpText="Realize un resumen de actividades durante la ejecución de las actividades de la comisión" 
                                                                                                Theme="Aqua" Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" 
                                                                                                ControlToValidate="COM_RESUMEN" ErrorMessage="Campo Obligatorio Resumen" 
                                                                                                ValidationGroup="GrupoInforme">Campo Obligatorio Resumen</asp:RequiredFieldValidator>
                                                                                        </td>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                        <td>
                                                                                            &nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td class="encabezado1" colspan="2">
                                                                                            Contenido
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <dx:ASPxMemo ID="COM_CONTENIDO" runat="server" Height="71px" 
                                                                                                HelpText="Temas principales ejecutados durante el curso de la comisión" 
                                                                                                Theme="Aqua" Width="100%">
                                                                                            </dx:ASPxMemo>
                                                                                        </td>
                                                                                        <tr>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" 
                                                                                                    ControlToValidate="COM_CONTENIDO" ErrorMessage="Campo Obligatorio Contenido" 
                                                                                                    ValidationGroup="GrupoInforme">Campo Obligatorio Contenido</asp:RequiredFieldValidator>
                                                                                            </td>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="encabezado1" colspan="2">
                                                                                                Conclusiones
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2" style="height: 76px">
                                                                                                <dx:ASPxMemo ID="COM_CONCLUSIONES" runat="server" Height="71px" 
                                                                                                    HelpText="Especifique los resultados obtenidos " Theme="Aqua" Width="100%">
                                                                                                </dx:ASPxMemo>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                                                                                                    ControlToValidate="COM_CONCLUSIONES" 
                                                                                                    ErrorMessage="Campo Obligatorio Conclusiones" ValidationGroup="GrupoInforme">Campo Obligatorio Conclusiones</asp:RequiredFieldValidator>
                                                                                            </td>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="encabezado1" colspan="2">
                                                                                                Recomendaciones
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                <dx:ASPxMemo ID="COM_RECOMENDACIONES" runat="server" Height="71px" 
                                                                                                    HelpText="Propuestas y sugerencias resultantes de la comisión" Theme="Aqua" 
                                                                                                    Width="100%">
                                                                                                </dx:ASPxMemo>
                                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" 
                                                                                                    ControlToValidate="COM_RECOMENDACIONES" 
                                                                                                    ErrorMessage="Campo Obligatorio Recomendaciones" ValidationGroup="GrupoInforme">Campo Obligatorio Recomendaciones</asp:RequiredFieldValidator>
                                                                                            </td>
                                                                                        </tr>
                                                            <tr>
                                                                <td class="encabezado1" colspan="2">
                                                                    Datos Contacto
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    <dx:ASPxMemo ID="COM_CUMPLIDO_INFORME" runat="server" Height="71px" 
                                                                        Theme="Aqua" Width="100%">
                                                                    </dx:ASPxMemo>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" 
                                                                        ControlToValidate="COM_CUMPLIDO_INFORME" 
                                                                        ErrorMessage="Campo Obligatorio Cumplido Informe" 
                                                                        ValidationGroup="GrupoInforme">Campo Obligatorio Cumplido Informe</asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="encabezado1" colspan="2">
                                                                    Recibos de transporte terrestre
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    <dx:ASPxMemo ID="COM_RECIBOS_TRANSPORTE_TERRESTRE" runat="server" Height="71px" 
                                                                        HelpText="Inserte descripcion de los recibos anexos que adjunta " Theme="Aqua" 
                                                                        Width="100%">
                                                                    </dx:ASPxMemo>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="encabezado1" colspan="2">
                                                                    Recibos de transporte fluvial
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    <dx:ASPxMemo ID="COM_RECIBOS_TRANSPORTE_FLUVIAL" runat="server" Height="71px" 
                                                                        HelpText="Inserte descripcion de los recibos anexos que adjunta " Theme="Aqua" 
                                                                        Width="100%">
                                                                    </dx:ASPxMemo>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="encabezado1" colspan="2">
                                                                    Otros
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    <dx:ASPxMemo ID="COM_OTROS" runat="server" Height="71px" Theme="Aqua" 
                                                                        Width="100%">
                                                                    </dx:ASPxMemo>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center" valign="top">

                                                                PASABORDO IDA
                                                                <dx:ASPxUploadControl ID="uplImage" runat="server" ClientInstanceName="uploader" ShowProgressPanel="True"
                                            NullText="Click aqui para buscar archivos.." Size="35" OnFileUploadComplete="uplImage_FileUploadComplete">
                                            <ClientSideEvents FileUploadComplete="function(s, e) { Uploader_OnFileUploadComplete(e); }"
                                                FilesUploadComplete="function(s, e) { Uploader_OnFilesUploadComplete(e); }"
                                                FileUploadStart="function(s, e) { Uploader_OnUploadStart(); }"
                                                TextChanged="function(s, e) { UpdateUploadButton(); }"></ClientSideEvents>
                                            <ValidationSettings MaxFileSize="4194304" AllowedFileExtensions=".jpg,.jpeg,.jpe,.gif">
                                            </ValidationSettings>
                                        </dx:ASPxUploadControl>
                                        <dx:ASPxLabel ID="lblAllowebMimeType" runat="server" Text="Imágenes permitidas: jpeg, gif"
                                            Font-Size="8pt">
                                        </dx:ASPxLabel>

                                        <dx:ASPxLabel ID="lblMaxFileSize" runat="server" Text="Maximum file size: 4Mb" Font-Size="8pt">
                                        </dx:ASPxLabel>

                                        <dx:ASPxButton ID="btnUpload" runat="server" AutoPostBack="False" Text="Vista Previa" ClientInstanceName="btnUpload"
                                            Width="100px" ClientEnabled="False" >
                                            <ClientSideEvents Click="function(s, e) { uploader.Upload(); }" />
                                        </dx:ASPxButton>
                                                                </td>
                                                                <td align="center">
                                                                <img src=""  id="previewImage" alt="" />
                                                                    <%--<asp:Image ID="imgPasabordo" runat="server"  />--%>
                                                                <asp:HyperLink ID="HyperLinkPasabordoOrigen" Target="_blank"  runat="server">[HyperLinkPasabordoOrigen]</asp:HyperLink>
                                                                </td>
                                                                
                                                            </tr>

                                                             <tr>
                                                                <td align="center" valign="top">
                                                                PASABORDO REGRESO
                                                                <dx:ASPxUploadControl ID="uploader2" runat="server" ClientInstanceName="uploader2" ShowProgressPanel="True"
                                            NullText="Click aqui para buscar archivos..." Size="35" OnFileUploadComplete="uplImage_FileUploadComplete2">
                                            <ClientSideEvents FileUploadComplete="function(s, e) { Uploader_OnFileUploadComplete2(e); }"
                                                FilesUploadComplete="function(s, e) { Uploader_OnFilesUploadComplete2(e); }"
                                                FileUploadStart="function(s, e) { Uploader_OnUploadStart2(); }"
                                                TextChanged="function(s, e) { UpdateUploadButton2(); }"></ClientSideEvents>
                                            <ValidationSettings MaxFileSize="4194304" AllowedFileExtensions=".jpg,.jpeg,.jpe,.gif">
                                            </ValidationSettings>
                                        </dx:ASPxUploadControl>
                                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Imágenes permitidas: jpeg, gif"
                                            Font-Size="8pt">
                                        </dx:ASPxLabel>

                                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Maximum file size: 4Mb" Font-Size="8pt">
                                        </dx:ASPxLabel>

                                        <dx:ASPxButton ID="btnUpload2" runat="server" AutoPostBack="False" Text="Vista Previa" ClientInstanceName="btnUpload2"
                                            Width="100px" ClientEnabled="False" >
                                            <ClientSideEvents Click="function(s, e) { uploader2.Upload(); }" />
                                        </dx:ASPxButton>
                                                                </td>
                                                                <td align="center">
                                                                <img src=""  id="previewImage2" alt="" />
                                                                    <%--<asp:Image ID="imgPasabordo" runat="server"  />--%>
                                                                <asp:HyperLink ID="HyperLinkPasabordoDestino" Target="_blank"  runat="server">[HyperLinkPasabordoDestino]</asp:HyperLink>
                                                                </td>
                                                                
                                                            </tr>

                                                            <tr>
                                                                <td align="center" valign="top">

                                                                OTROS
                                                                <dx:ASPxUploadControl ID="uploader3" runat="server" ClientInstanceName="uploader3" ShowProgressPanel="True"
                                            NullText="Click aqui para buscar archivos.." Size="35" OnFileUploadComplete="uplImage_FileUploadComplete3">
                                            <ClientSideEvents FileUploadComplete="function(s, e) { Uploader_OnFileUploadComplete3(e); }"
                                                FilesUploadComplete="function(s, e) { Uploader_OnFilesUploadComplete3(e); }"
                                                FileUploadStart="function(s, e) { Uploader_OnUploadStart3(); }"
                                                TextChanged="function(s, e) { UpdateUploadButton3(); }"></ClientSideEvents>
                                            <ValidationSettings MaxFileSize="4194304" AllowedFileExtensions=".jpg,.jpeg,.jpe,.gif">
                                            </ValidationSettings>
                                        </dx:ASPxUploadControl>
                                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Imágenes permitidas: jpeg, gif"
                                            Font-Size="8pt">
                                        </dx:ASPxLabel>

                                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Maximum file size: 4Mb" Font-Size="8pt">
                                        </dx:ASPxLabel>

                                        <dx:ASPxButton ID="btnUpload3" runat="server" AutoPostBack="False" Text="Vista Previa" ClientInstanceName="btnUpload3"
                                            Width="100px" ClientEnabled="False" >
                                            <ClientSideEvents Click="function(s, e) { uploader3.Upload(); }" />
                                        </dx:ASPxButton>
                                                                </td>
                                                                <td align="center">
                                                                <img src=""  id="previewImage3" alt="" />
                                                                    <%--<asp:Image ID="imgPasabordo" runat="server"  />--%>
                                                                <asp:HyperLink ID="HyperLinkPasabordoOtro" Target="_blank"  runat="server">[HyperLinkPasabordoOtro]</asp:HyperLink>
                                                                </td>
                                                                
                                                            </tr>

                                                            <tr>
                                                            <td colspan="2" align="center">
                                                                <dx:ASPxCallback ID="ASPxCallback2" runat="server" ClientIDMode="AutoID" 
                                                                    ClientInstanceName="Callback2">
                                                                    <ClientSideEvents CallbackComplete="function(s, e) { LoadingPanel2.Hide(); }" />
                                                                </dx:ASPxCallback>
                                                                <dx:ASPxButton ID="btnGuardarInforme" runat="server" Text="Guardar" 
                                                                    OnClick="btnGuardarInforme_Click" Theme="SoftOrange" 
                                                                    ValidationGroup="GrupoInforme">
                                                                    <ClientSideEvents Click="function(s, e) {
                                                            Callback2.PerformCallback();
	                                                        LoadingPanel2.Show();
                                                        }" />
                                                                </dx:ASPxButton>
                                                                
                                                                <dx:ASPxLoadingPanel ID="ASPxLoadingPanel2" runat="server" 
                                                                    ClientInstanceName="LoadingPanel2" Modal="True" Text="Procesando&amp;hellip;" 
                                                                    Theme="Youthful">
                                                                </dx:ASPxLoadingPanel>
                                                                
                                                            </td>
                                                            </tr>
                                                        </table>
                                                    </dx:PanelContent>
                                                </PanelCollection>
                                            </dx:ASPxRoundPanel>
                                        </dx:ContentControl>
                                    </ContentCollection>
                                </dx:TabPage>
                            </TabPages>
                        </dx:ASPxPageControl>

                </ContentTemplate>
                </asp:UpdatePanel>
            
            </td>
        </tr>
        </table>
     <script type="text/javascript">
    // <![CDATA[
         var aspxPreviewImgSrc = getPreviewImageElement().src;
         var aspxPreviewImgSrc2 = getPreviewImageElement2().src;
         var aspxPreviewImgSrc3 = getPreviewImageElement3().src;
    // ]]> 
    </script>
</asp:Content>
